/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.structure;

/**
 *
 * @author dell
 */
import entity.support.LogIndexable;
import entity.support.Obj;
import java.util.Map;
import java.util.HashMap;
public class Person extends Obj implements LogIndexable
{
//columns_______________________________________________________________________
private String job;
private int companyid;
private String phone;
private int ismessage;
private int isphone;
private String contact;
private String remark;
//functions_____________________________________________________________________
     //opeartor_________________________________________________________________
public Person()
{
    
}
public Person(Obj o)
{
     this.id=o.getId();
     this.name=o.getName();
     this.intime=o.getIntime();
     this.updatetime=o.getUpdatetime();
}
public Person(Map<String,String> map)
{
     
}
     //getter___________________________________________________________________
public String getJob() 
{
     return job;
}
public int getCompanyid() 
{ 
     return companyid;
}
public String getPhone() 
{
     return phone;
}
public int isIsmessage() 
{
     return ismessage;
}
public int isIsphone() 
{
     return isphone;
}
public String getContact() 
{
     return contact;
}
public String getRemark() 
{
     return remark;
}
     //setter___________________________________________________________________
public void setJob(String job) 
{
     this.job = job;
}
public void setCompanyid(int companyid) 
{
     this.companyid = companyid;
}
public void setPhone(String phone) 
{
     this.phone = phone;
}
public void setIsmessage(int ismessage) 
{
     this.ismessage = ismessage;
}
public void setIsphone(int isphone) 
{
     this.isphone = isphone;
}
public void setContact(String contact) 
{
     this.contact = contact;
}
public void setRemark(String remark) 
{
     this.remark = remark;
}
     //operator_________________________________________________________________
public Map<String,String> getContactInMap()
{
     return StructureUtil.toMap(this.contact);
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return super.toString()+"\t"+job+"\t"+companyid+"\t"+phone+"\t"+ismessage+
             "\t"+isphone+"\t"+contact+"\t"+remark;
}
}
